app:registClass("NewPlayerPanel", "app.newBag.views.NewPlayerPanel")

app:registClass("NewBagPanel", "app.newBag.views.NewBagPanel")
app:registClass("NewRarePanel", "app.newBag.views.NewRarePanel")
app:registClass("NewClothesPanel", "app.newBag.views.NewClothesPanel")
app:registClass("NewTitlePanel", "app.newBag.views.NewTitlePanel")
app:registClass("NewRenownPanel", "app.newBag.views.NewRenownPanel")

app:registClass("NewBagController", "app.newBag.controllers.NewBagController")

local NewBagModel = import(".models.NewBagModel")
app:registInst(NewBagModel.new())

app:registInst(app:getClass("NewBagController").new({type="systemUI"}))

local model = app:getInst("NewBagModel")

app.session:on("action.S2C_QueryRecastMaster", function(msg)
    -- dump(msg, "S2C_QueryRecastMaster")
    model:setRecastMaster(msg.NowID, msg.NextID)
end)